import { IsString, Matches, IsEmail } from 'class-validator'

export class MeetingRoomListDto {
  @IsString()
  address: string

  @IsString()
  @Matches(/^\d{4}-\d{2}-\d{2}$/, {
    message: 'meetingDate must be in the format YYYY-MM-DD'
  })
  meetingDate: string
}

export class AuthorizeDto {
  @IsString()
  oaSession: string

  @IsString()
  oaTokenId: string

  @IsString()
  mid: string
}
